#!/bin/env bash

router_ip="128.111.43.36"
file_server_ip="128.111.43.56"

if [ "$1" == "r" ]
then
 java -cp lib/log4j-1.2.16.jar:build/classes router.Router 128.111.43.29:128.111.43.53:128.111.43.55:128.111.43.64:128.111.43.30:$file_server_ip
elif [ "$1" == "f" ]
then
 java -cp lib/log4j-1.2.16.jar:build/classes fileserver.FileServer
elif [ "$1" == "0" ] || [ "$1" == "1" ] || [ "$1" == "2" ] || [ "$1" == "3" ] || [ "$1" == "4" ]
then
 java -cp lib/log4j-1.2.16.jar:build/classes client.Client $router_ip 9999 $1
fi